package com.biqee.dao.impl;

import java.util.List;

import com.biqee.dao.BqVersionDAO;
import com.biqee.dao.base.BaseDAOImpl;
import com.biqee.model.db.BqVersion;

public class BqVersionDAOImpl extends BaseDAOImpl implements BqVersionDAO {

	@Override
	public Long create(BqVersion bqVersion) {
		return (Long)getSqlMapClientTemplate().insert(getRealSqlId("create"), bqVersion);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<BqVersion> readByVersionType(String versionType) {
		return (List<BqVersion>)getSqlMapClientTemplate().queryForList(getRealSqlId("readByVersionType"), versionType);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<BqVersion> readAll() {
		return (List<BqVersion>)getSqlMapClientTemplate().queryForList(getRealSqlId("readAll"));
	}

	
}
